home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000046_fdc@columbia.edu_Mon Dec 8 09:16:41 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Command line switches
Date: 8 Dec 2003 14:15:28 GMT
Organization: Columbia University
Lines: 46
Message-ID: <slrnbt91s0.o2u.fdc@sesame.cc.columbia.edu>
References: <pqp8tv06mim45q30h48du92s90oklut9sl@4ax.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1070892928 12902 128.59.59.56 (8 Dec 2003 14:15:28 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 8 Dec 2003 14:15:28 GMT
User-Agent: slrn/0.9.7.4 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14722
In article <pqp8tv06mim45q30h48du92s90oklut9sl@4ax.com>,
Chris@bundy.co.uk wrote:
: Im trying to get Kermit to record text data that
: im sending to the serial port, and write a log
: file. I can do this manually but I just cant quite
: get it to work using command line switches.
:
: the closes i've got is
:
: server01# /usr/kermit/work/kermit -l /dev/cuaa0 -b
: 9600 -C"log session /var/log/session.log" -c
:
: this monitors the port OK but does not write the
: log file. which I want it to append to.
:
The -C command-line argument is not treated in sequence with
the others. The order in which command sources are handled
is listed on page 462 of "Using C-Kermit". The -C option is
handled after all other command-line options. Anyway, you're
missing a space after -C.
It's usually best not to mix and match command-line options and
interactive commands. Command-line options give you access to
a small subset of Kermit's functions. When you need more than
that, use the command language. To do what you want, create a
little file containing:
#!/usr/kermit/work/kermit
set modem type none
set line /dev/cuaa0
if fail exit 1
set exit warning off
set speed 9600
log session /var/log/session.log
if fail exit 1
connect
give it execute permission, and run it instead of the Kermit
binary. You can also replace the CONNECT command with any
desired further automated interactions, as described in the
script-writing tutorial:
http://www.columbia.edu/kermit/ckscripts.html#tut
- Frank